package com.shanjupay.common.exception;

/**
 * @projectName: shanjupay
 * @package: com.shanjupay.common.domain
 * @className: BusinessException
 * @author: Eric
 * @description: TODO
 * @date: 2023/12/3 16:53
 * @version: 1.0
 */
public class BusinessException extends RuntimeException{

    //错误代码
    private ErrorCode errorCode;
    public BusinessException(ErrorCode errorCode) {
        super();
        this.errorCode = errorCode;
    }

    public BusinessException(){
        super();
    }

    // get()和set()方法
    public ErrorCode getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(ErrorCode errorCode) {
        this.errorCode = errorCode;
    }
}
